package com.nativetalk.dao;

import com.nativetalk.bean.search.TdNtSearchHistory;
import com.nativetalk.bean.search.TdNtSearchHistoryList;

import java.util.List;

/**
 * Created by lizhun on 16/8/24.
 */
@MyBatisRepository
public interface TdNtSearchHisoryDao {
    /**
     * @Purpose  添加搜索记录
     * @version  3.2
     * @author   lizhun
     * @param    tdNtSearchHistory
     * @return   void
     */
    public void insertTdNtSearchHistory(TdNtSearchHistory tdNtSearchHistory);
    /**
     * @Purpose  根据用户id查找前10条搜索记录
     * @version  3.2
     * @author   lizhun
     * @param    memb_id
     * @return   List<TdNtSearchHistoryList>
     */
    public List<TdNtSearchHistoryList> findTdNtSearchHistoryList(int memb_id);
    /**
     * @Purpose  查找关键词前10条搜索记录
     * @version  4.0
     * @author   lizhun
     * @param
     * @return   List<TdNtSearchHistoryList>
     */
    public List<TdNtSearchHistoryList> findHotKeyword();
}
